package com.lancoo.ccas53.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lancoo.ccas53.config.MybatisRedisCache;
import com.lancoo.ccas53.entity.ScheduleSelect;
import com.lancoo.ccas53.pojo.dto.ArrangeScheduleDto;
import com.lancoo.ccas53.pojo.dto.InnerTeachingClass;
import org.apache.ibatis.annotations.CacheNamespace;

import java.util.List;

/**
 * @Author: liufeng
 * @CreateTime: 2024-08-01  10:53
 * @Description:
 */
@CacheNamespace(implementation = MybatisRedisCache.class, eviction = MybatisRedisCache.class)
public interface ScheduleSelectMapper extends BaseMapper<ScheduleSelect> {
    List<ArrangeScheduleDto> getSchedules(Integer taskId, List<InnerTeachingClass> teachingClasses);

    List<ScheduleSelect> getAllScheduleByTeachingClassIdAndHourType(String teachingClassId, Integer hourType);
}
